const HtmlWebpackPlugin = require("html-webpack-plugin");
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
const path = require("path");
module.exports = {
  mode: "development",
  entry: {
    app: "./src/app.js",
    m2: "./src/m2.js",
  },
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: ".scripts/[name].js",
    clean: true,
  },
  plugins: [new HtmlWebpackPlugin(), new BundleAnalyzerPlugin()],
};
